var namedata = ["翁*真","*陽文","宋*","朱*芙","管*蘭","盧今*","馬*絲","*凝陽","*覓雲","關*潤"];
var commentdata=["物美价廉，真的不錯","不錯，舒服","很不錯，店家靠譜","很好很喜歡很好很喜歡","品質挺不錯的","非常喜歡，品質很好！","不錯，舒服","很不錯，店家靠譜","很好很喜歡很好很喜歡","品質挺不錯的","非常喜歡，品質很好！"];
var phonedata=["*****8754", "*****8763", "*****7490", "*****8205", "*****1356", "*****6123", "*****0162", "*****1267", "*****3710", "*****5125"];
var nowdate= getNowFormatDate();

for (var i = 5; i >= 0; i--) {
        makeComent();
}
function getNowFormatDate() {
        var date = new Date();
        var seperator1 = "-";
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        var strDate = date.getDate();
        if (month >= 1 && month <= 9) {
            month = "0" + month;
        }
        if (strDate >= 0 && strDate <= 9) {
            strDate = "0" + strDate;
        }
        var currentdate = year + seperator1 + month + seperator1 + strDate;
        return currentdate;
    }
function makeComent(){
    var html="<div>"
for(var i=0;i<commentdata.length;i++){
	var k = i%namedata.length;
	html +='<div class="appr-title mqc"><span style="color: red; margin: 0px 3px">'+phonedata[k]+'    '+namedata[k]+'</span>'+
                        '<span>满意度：<font color="red">★★★★★ </font></span>'+nowdate+'<br>'+
                    '</div>'+
                    '<div class="mqc">'+
                        '<p>'+
                            '<span style="font-family: 宋体">'+commentdata[i]+'</span>'+
                            '<span style="font-family: 宋体"></span>'+
                        '</p>'+
                    '</div>'+
                    '<div class="msKeimgBox">'+
					'<div class="mskeTogBtn"></div>'+
                    '</div>';
        
    }
    html+="</div>"
    $("#mq").append(html);
}
